<?php
/**
 * Created by PhpStorm.
 * User: Jiarui
 * Date: 2015/11/12
 * Time: 16:26
 */

namespace Admin\Controller;
use Think\Controller;

class BaseController extends Controller
{
    public function _initialize(){


        if($_SESSION['login'] != true){
            $this->error("请先登陆后台!",U('Index/index'));
        }

    }
}